﻿using Cofe.Core.Dynamic;
using Cofe.Core.Property;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace Cofe.Core.Implements
{    
#if UseDataContractToSerialize
    [DataContract(Name="Container", Namespace=CofeConstants.Namespace)]
#else
    [XmlRoot(ElementName = "Container", Namespace = CofeConstants.Namespace)]
#endif
    public class CofeDirectoryInfo : CofeSystemInfo, ICofeDirectoryInfo
    {
        #region Constructor

        public CofeDirectoryInfo(IPropertyHost properties, IDynamicPropertyInterfaceProvider[] providers)
            : base(properties, providers)
        {
        }

        public CofeDirectoryInfo(IPropertyHost properties)
            : base(properties)
        {

        }

        protected CofeDirectoryInfo()
            : base()
        {

        }

        #endregion

        #region Methods

      

      
        
        #endregion

        #region Data
        
        #endregion

        #region Public Properties

        [IgnoreDataMember]
        public bool HasSubFolder
        {
            get { return Entity.Behaviors.TryGetProperty<bool>(CofeDirectoryProperties.HasSubFolders); }
        }

        [IgnoreDataMember]
        public bool HasFiles
        {
            get { return Entity.Behaviors.TryGetProperty<bool>(CofeDirectoryProperties.HasFiles); }
        }

        [IgnoreDataMember]
        public bool IsFileBasedFS
        {
            get { throw new NotImplementedException(); }
        }
        
        #endregion








      
    }
}
